Date: 07-15-2020
Paper: "Signaling Restraint: International Engagement and Rebel Groups’ Commitment to International Law"
Authors: Hyeran Jo, Joshua Alley, Yohan Park, and Soren Jordan

The replication folder contains data and code to replicate Table 1 & Figure 1-4 in the paper. 

***********
* DATASETS 
***********
Two datasets are needed for replication.

1. "commitment data master.dta"
This is master dataset for the paper that contains all the variables used for Table 1 & Figure 2-4.

2. "commitment data for figure 1.dta"
This data is for producing the temporal trend for production of rebel commitment documents in Figure 1.

********* 
* TABLES
*********
The sub-folder contains one do-file.

1. "code for table 1.do"
This is stata do-file for replicating Table 1. 

Simply run the do-file after setting the working directory using -cd- 

**********
* FIGURES
**********
This sub-folder contains five files.

1. "code for figures 1-4.R"
This is R-script that generates the figures from the estimates. 

1. "code for estimates in figures 2-4.do" 
This is stata do-file for generating the estimates for Figures 2-4. 

3. "psup for figure 2.cvs"
This is cvs file for Figure 2 that contains the estimated Probabilities for transnational SUPport (psup). 

4. "pccs for figure 3.cvs"
This is cvs file for Figure 3 that contains the estimated Probabilities for Command and Control Strength (pccs).

5. "pnpt for figure 4.cvs"
This is cvs file for Figure 4 that contains the estimated Probabilities for Near Peace Talks (pnpt)

To generate Figures 1-4, simply run the R-script ("code for figures 1-4.R") for each figure after changing working directory using -setwd-.

Alternatively, to see the full process of generating estimates that produce figures 2-4, first run the do-file ("code for estimates in figures 2-4.do")
and then run R-script ("code for figures 1-4.R"). 

